using System;
using System.Collections.Generic;
using System.Text;

namespace DDW
{
	public class FinallyNode : StatementNode
	{
		private BlockStatement finallyBlock = new BlockStatement();
		public BlockStatement FinallyBlock
		{
			get { return finallyBlock; }
			set { finallyBlock = value; }
        }

        public override void ToSource(StringBuilder sb)
        {
			sb.Append("finally");
			this.NewLine(sb);
			finallyBlock.ToSource(sb);
        }
	}
}
